//
//  DataProcess.h
//  KidReading
//
//  Created by Telen on 16/4/10.
//  Copyright © 2016年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DataProcess : NSObject

+ (BOOL)iOS7_low;
+ (BOOL)iOS9_low;
+ (CGRect)exchangeWH:(CGRect)frame;

+ (bool)haveChinesWords:(NSString*)str;
+ (bool)onlyChinesWords:(NSString*)str;

//dispatch 延时主线程
+ (void)do_Main:(void(^)(void))did delay:(double)delay;
+ (void)do_Main_quick:(void(^)(void))did;

//dispatch 延时子线程
+ (void)do_Async:(void(^)(void))did delay:(double)delay;
+ (void)do_Async_quick:(void(^)(void))did;
+ (void)do_Async_default:(void (^)(void))did delay:(double)delay;
+ (void)do_Async_low:(void (^)(void))did delay:(double)delay;
+ (void)do_Async_high:(void (^)(void))did delay:(double)delay;
+ (void)do_Sync:(void(^)(void))did;

//dispatch 延时子线程 / 主线程返回
+ (void)do_Async:(void (^)(void))did delay:(double)delay mainCallback:(void(^)(void))cmp;

//获得系统容量
+ (NSNumber *)totalDiskSpace;//总容量
+ (NSString *)totalDiskSpace_GB;//总容量
+ (NSNumber *)freeDiskSpace;//可用空间
+ (NSString *)freeDiskSpace_GB;//可用空间
+ (NSNumber *)getCacheSizeForPath:(NSArray*)abPathArr;//获得路径文件夹大小总和
+ (BOOL)hasCacheSize_MB_ForPath:(NSArray*)abPathArr;//获得路径文件夹 是否存在缓存
+ (NSString *)getCacheSize_MB_ForPath:(NSArray*)abPathArr;//获得路径文件夹大小总和
+ (double)getFileSize_MB:(NSString*)filePath; //获得路径文件大小
/**自动匹配容量单位*/
+ (NSString *)sizeStringByFormattingBytes:(unsigned long long)bytes;

@end
